package com.aos.erp.schools.rpc.sys.school;


import com.aos.erp.common.bean.IPageBean;
import com.aos.erp.common.bean.ResultEntity;
import com.aos.erp.schools.model.gatherschool.vo.GatherListVo;
import com.aos.erp.schools.model.gatherschool.vo.ServiceGatherSchoolVo;
import com.aos.erp.schools.service.gatherschool.GatherSchoolService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 傲雄驾校管理 前端控制器
 * </p>
 *
 * @author 杨文博
 * @since 2018-12-02
 */
@Slf4j
@RestController("ServiceGatherSchoolController")
@RequestMapping("/service/school")
@Api(value="rpc驾校管理接口",tags={"rpc驾校管理接口"})
public class GatherSchoolController {

	@Autowired
	private GatherSchoolService gatherSchoolService;

	@PostMapping("/schoolByCityId")
	@ApiOperation(value = "根据城市Id获取总校")
	@ApiModelProperty(value = "城市Id数组", required = true, dataType = "array")
	public List<ServiceGatherSchoolVo> querySchoolByCityId(@RequestBody List<Long> cityIds) {
		return gatherSchoolService.querySchoolByCityId(cityIds);
	}



}

